package com.woniuxy.test07;

class FatherClass{
    public void doSome(String str){
        System.out.println("FatherClass---doSome");
        doSome1(str);
    }

    public void doSome1(String str){
        System.out.println("FatherClass---doSome1");
    }
}
class SonClass extends FatherClass{

    public void doSome1(String str){
        System.out.println("SonClass---doSome1");
    }
}

public class Test01 {
    public static void main(String[] args) {
        FatherClass fatherClass=new SonClass();
        fatherClass.doSome("aaa");
    }
}
